﻿using Inovout.Memberships.Models;
using Inovout.Memberships.Repositories;
using Inovout.Security;
using Inovout.Services;

namespace Inovout.Memberships.Services
{
    public class MembershipService : RepositoryService<Membership>
    {

        protected MembershipRepository MembershipRepository
        {
            get { return (MembershipRepository)base.Repository; }
        }
        
        public Membership FindByEmail(string email)
        {
            return MembershipRepository.FindByEmail(email);
        }

        public Membership FindFirst()
        {
            return MembershipRepository.FindFirst();
        }

        public bool ExistsByEmail(string email)
        {
            return MembershipRepository.ExistsByEmail(email);
        }
    }
}
